
# import math
# print('hello python'+'p'+'vdz\".l;\"\n')
# print("""kkk，lll
# vvv,nnn""")
# print("Let\' go")
# sr = "18788045539"
# print(sr+"5568")
# print(str)
# print(2**3)
# print(math.sin(1))
# print(math.log2(8))
# a = -1
# b = -2
# c = 3
# delta=b**2-4*a*c
# print((-b+math.sqrt(delta))/(2*a))
# print((b+math.sqrt(delta))/(2*a))
# ###
# s =  "pqlVm"
# print(len('pjk'))
# print("sa1j"[0]+s[0]+s[len(s)-1])
# print(type(6))
# print(type(6.5))
# km = None
# km2 = True
# km3 = False
# ##
# #BMI
# height = float(input("身高（m）："))
# weight = float(input("体重（km）："))
# BMI = height / (weight**2)
# print("BMI:"+str(BMI))
# ###########################
# a = 1
# b = 2
# m = int(input("m="))
# if m>8:
#     a+=1
# #如果不缩进会认为if语句结束
# else:
#     b+=1
# if m>10:
#     if m>15:
#         a+=10
#     else:
#         b-=15
# else:
#     b-=20
# ##########################
# if BMI <= 18.5:
#     print("偏瘦")
# elif 18.5 < BMI <=25:
#     print("正常")
# elif 25 < BMI <=30:
#     print("偏胖")
# else:
#     print("肥胖")
# if not m==2:
#     print("p")
# if m < 0 or m > -1:
#     print("g")
# #if m > 4 and m < 20:
# #    print("v")
#
# list_u = ["111","555","444"]
# list_u.append("8")
# list_u.remove("111")
# list_u[1]="666"
# print(max(list_u))
# print(min(list_u))
# print(list_u)
# ####################
# cont = {"小美":"15254125112",
#         "小帅":"18754532546"}
# #cont["阿珍"] = "15925425415"
# b = "小美" in cont
# del cont["小美"]
# print(len(cont))
# list1 = [3,45,6,6]
# for val in list1:
#     print(val)
# for val in cont.keys():#所有键
#     print(val)
# for val in cont.values():#所有值
#     print(val)
# for key,val in cont.items():#所有键值对
#     print(key,val)
# tmp=0
# for i in range(1,101):
#     tmp+=i
# while 0:
#     print(110)
# for i in range(len(list1)):
#     print(list[i])
######################
# val = input("输入一个值：")
# x = 0
# n = 0
# while val!='q':
#     x += float(val)
#     n+=1
#     val = input("输入一个值：")
# if n==0:
#     print(0)
# else:
#     print(x/n)
def func(central_angle,radius):
    sector_area = central_angle / (360 * 3.14 * radius**2)
     #print(f"扇形面积为：{sector_area}")
    return float(sector_area)
# def bmi(weight,height):
#     user_bmi = height / (weight**2)
#     return user_bmi
p = 5//3
import statistics
from statistics import median,mean
from statistics import* #所以内容引入，不需要加模块名
m = median([4,4,4,3,5])



########################
class UserData:
    def __init__(self,name):
        self.name = name
    def kpm(self):
        print("人机")
us1 = UserData("us1")
print(us1.name)
print("kk"*3)

# class Mammal:
#     def __init__(self,name):
#         self.name = name
#     def poop(self):
#         print("拉屎")
#     def breathe(self):
#         print("呼吸")
# class Cat(Mammal):
#     def __init__(self,name):
#         super().__init__(name)
#         b = 4
# class Employee:
#     def __init__(self,name,number):
#         self.name=name
#         self.number=number
#     def pout(self):
#         print(f"name:{self.name}")
#         print(f"number:{self.number}")
# class FullTime(Employee):
#     def __init__(self,name,number,monthly_salary):
#         super().__init__(name,number)
#         self.monthly_salary = monthly_salary
# class PartTime(Employee):
#     def __init__(self,name,number,daily_salary):
#         super().__init__(name,number)
#         self.daily_salary = daily_salary
f = open("./test.txt",'r',encoding = "utf-8")
print(f.read())#读所有
print(f.read(10))#读10个字节
print(f.readline())#读一行
lines = f.readlines()#返回列表
f.close()
with open("./text.txt",'w') as f:
    f.write('ppp\n')
with open("./text.txt",'a') as f:
    f.write('kkk\n')
with open("./text.txt",'r+') as f:
    f.write('kkk\n')
    print(f.read())
try:
    lk = input("jjj")
except:
    print("程序错误")
else:
    print("执行成功")
finally:
    print("内存已释放")
m = 9
assert(m!=0)
